/*
 * TrainData.java
   *  
 * Author: 罗磊，luoleicn@gmail.com
   * 
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
   * 
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
   * 
 * You should have received a copy of the GNU General Public License
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
   * 
 * Last Update:2011-6-11
   * 
   */
package mlfs.maxent.model;

import java.util.HashSet;
import java.util.List;

/**
 * The Class TrainData.
 * 封装利用CorpusReader处理后的结果
 */
public class TrainDataHandler {

	private HashSet<Integer> m_predicates;
	private HashSet<Integer> m_labels;
	
	private List<MEEvent> m_events;
	
	private int m_numPred;
	private int m_numLabels; 
	
	public TrainDataHandler(HashSet<Integer> predicates, HashSet<Integer> labels, List<MEEvent> events, int numPreds, int numLabels)
	{
		this.m_predicates = predicates;
		this.m_labels = labels;
		this.m_events = events;
		
		this.m_numPred = numPreds;
		this.m_numLabels = numLabels;
	}
	
	public List<MEEvent> getEvents()
	{
		return this.m_events;
	}
	
	public int getNumLabels()
	{
		return m_numLabels;
	}
	
	public int getNumPredicates()
	{
		return m_numPred;
	}

	public HashSet<Integer> getPredicates() {
		return m_predicates;
	}

	public HashSet<Integer> getLabels() {
		return m_labels;
	}
	
	
}
